package com.ziyun.erp.modules.order.dao;

import com.ziyun.erp.modules.order.entity.UserAccessoryEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ziyun.erp.modules.order.vo.UserAccessoryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 我的附件
 *
 * @author gaosheng
 * @email
 * @date 2018-09-01 10:02:31
 */
@Service("userAccessoryDao")
public interface UserAccessoryDao extends BaseMapper<UserAccessoryEntity> {

    /**
     * 查询订单商品附件
     * @param itemId 订单商品ID
     * @return
     */
    List<UserAccessoryVo> queryListByItemId(@Param("itemId") String itemId);


    List<UserAccessoryVo> queryListByOrderNo(@Param("orderNo") String orderNo);


    /**
     * 修改订单商品附件
     * @param map
     * @param ids 订单商品ID
     * @return
     */
    int updateByMap(@Param("map") Map<String, Object> map, @Param("ids") Integer[] ids);

}
